package beans;

public class Car {
	private String name;
	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		this.money = money;
	}

	public String getName() {
		return name;
	}

	private int speed;
	private int money;
	public Car(String name, int speed, int money) {
		super();
		this.name = name;
		this.speed = speed;
		this.money = money;
	}
	public Car() {
		// TODO Auto-generated constructor stub
	}
	
	public void show() {
		System.out.println(this.toString());
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		return "Car [name=" + name + ", speed=" + speed + ", money=" + money + "]";
	}
	
	
}
